var Router = require( "react-router" ).Router;
var Route = require( "react-router" ).Route;
var IndexRoute = require( "react-router" ).IndexRoute;
var hashHistory = require( "react-router" ).hashHistory;
//var S1main1 = require('bundle?lazy&name=S1main!./pages/S1main.js');
//var S1main2 = require('bundle?lazy&name=Home!./pages/Home.jsx');
//var Home = require('./pages/Home.jsx');
var App = require('./pages/App.js');
var AppRoot = require('./pages/AppRoot.js');
//引用样式
require('../assets/style/main.less');
require('antd/dist/antd.less');
// require('./pages/S1main.css');


var routes = (
	<Router history={ hashHistory }>
		<Route path="/" component={ AppRoot }>
			<IndexRoute component={ App.default }/>
			<Route path="/test" component={ require('react-router?name=test!./pages/Test.jsx') }/>
			<Route path="/test1" component={ require('react-router?name=test1!./pages/Test1.jsx') }/>
		</Route>
		<Route path="*" component={ require('react-router?name=S1main!./pages/S1main.js') }/>
	</Router>
);

module.exports = routes;